<?php
date_default_timezone_set("Asia/kolkata");
require 'db.php';
$time=date("Y-m-d h:i:s A");
$id=$_POST['id'];
$name=$_POST['uname'];
$mobile=$_POST['mobile'];
$gender=$_POST['gender'];
$dob=$_POST['dob'];

$sql= "UPDATE records SET 
	name='$name',
	mobile= '$mobile',
	gender= '$gender',
	dob= '$dob',
	modified_date= '$time'
	WHERE id='$id'";
mysql_query($sql)or die(mysql_error());
echo "Record SuccessFully Updated For #id $id";
?>

<a href="#" id="close">Add New Record</a>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$("#ack").load("load.php");
	$("#close").click( function() {
	$("#form").load("form.php")
});
</script>
